package com.huilian.iotbox.admin.controller;

import com.huilian.iotbox.admin.service.MoneyWithdrawInvoiceInfoService;
import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 谢洛涛
 * @date 2021/4/12 10:55
 */
@RestController
@RequestMapping("/api/moneyWithdrawInvoiceInfo")
public class MoneyWithdrawInvoiceInfo extends BaseController {
    @Autowired
    private MoneyWithdrawInvoiceInfoService moneyWithdrawInvoiceInfoService;
    @GetMapping("/findMoneyWithdrawInvoiceInfo/{withdrawId}")
    public ServerResponse findMoneyWithdrawInvoiceInfo( @PathVariable Integer withdrawId){
        return ServerResponse.createBySuccess(moneyWithdrawInvoiceInfoService.findMoneyWithdrawInvoiceInfo(withdrawId));
    }
}
